package com.smart.model.dtomapper;

import com.smart.model.domain.HotWorkDO;
import com.smart.model.request.HotWorkRequest;
import com.smart.model.vo.HotWorkVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface HotWorkDtoMapper {

    HotWorkDtoMapper INSTANCE = Mappers.getMapper(HotWorkDtoMapper.class);

    /**
    * DO to VO
    * @param hotWorkDO
    * @return
    */
    HotWorkVO do2VO(HotWorkDO hotWorkDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    HotWorkDO request2DO(HotWorkRequest request);
}
